<template>
    <h1>登录</h1>
<span>名称:{{name}}</span><input type="text" id=""/> <hr/>
<span v-html="shref"> </span>   <hr/>

<input type="text" id="sid" name="Tname"/>  <hr/>
<input type="text" :id="infor.sid" :name="infor.sname"/>  <hr/>

<input type="button" :disabled="IsCheck" value="登录" @click=""/><hr/>

<span>年龄:{{ age*2 }}</span><hr/>

<span>年龄:{{ age*2>10?"正确":"错误" }}</span><hr/>

</template>

<script setup lang="ts">

let name="张志聪"
let shref="<a href='http://www.baidu.com'>百度</a>"



var infor={
    sid:"sid",
    sname:"sname"
}
//布尔类型
let IsCheck=false;

let age=10;

</script>